import request from '@/utils/request'

// 查询节目单信息列表
export function listplan(query, pageReq) {
  return request({
    url: '/ticket/plan/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询节目单信息详细
export function getplan(id) {
  return request({
    url: '/ticket/plan/' + id,
    method: 'get'
  })
}

// 新增节目单单信息
export function addplan(data) {
  return request({
    url: '/ticket/plan',
    method: 'post',
    data: data
  })
}

// /ticket/actor 节目单
export function updateplan(data) {
  return request({
    url: '/ticket/plan',
    method: 'put',
    data: data
  })
}

// 删除节目单信息 /ticket/actor/{id}
export function delplan(id) {
  return request({
    url: '/ticket/plan/' + id,
    method: 'delete'
  })
}




///  节目单 -  节目  /ticket/planitem/list
export function listplanitem(query, pageReq) {
  return request({
    url: '/ticket/planitem/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询节目单信息详细
export function getplanitem(id) {
  return request({
    url: '/ticket/planitem/' + id,
    method: 'get'
  })
}

// 新增节目单单信息
export function addplanitem(data) {
  return request({
    url: '/ticket/planitem',
    method: 'post',
    data: data
  })
}

// /ticket/actor 节目单
export function updateplanitem(data) {
  return request({
    url: '/ticket/planitem',
    method: 'put',
    data: data
  })
}

// 删除节目单信息 /ticket/actor/{id}
export function delplanitem(id) {
  return request({
    url: '/ticket/planitem/' + id,
    method: 'delete'
  })
}

